/* :root {
    --bs-body-bg: #222;
    --bs-body-color: #f8f9fa;
    --bs-primary: #0d6efd;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-dark: #212529;
    --bs-light: #f8f9fa;
}

body {
    background-color: #222;
    color: #f8f9fa;
    font-family: 'Microsoft YaHei', sans-serif;
    padding-top: 10px;
} */

:root {
    --bs-body-bg: #222;
    --bs-body-color: #f8f9fa;
    --bs-primary: #0d6efd;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-dark: #212529;
    --bs-light: #f8f9fa;
}

body {
    background: linear-gradient(135deg, #0c0331 0%, #464343 50%, #272525 100%);
    color: #f8f9fa;
    font-family: 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.text-muted {
    color: rgb(156, 155, 155) !important;
}

.header {
    margin-bottom: 15px;
    color: #5bc0de;
}

.card {
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.card-header {
    background-color: #2c3e50;
    border-bottom: 1px solid #444;
    font-weight: bold;
    color: #5bc0de;
    padding: 10px 15px;
}

.sub-panel-title {
    font-size: 1.1rem;
    color: #8eb9d6;
    margin: 8px 10px 10px;
    padding: 0 2px 8px;
    border-bottom: 1px solid #444;
    font-weight: bold;
}

.sub-panel-title i {
    color: #5bc0de;
    margin-right: 8px;
}

.sub-sub-panel-title {
    font-size: 1rem;
    color: #7da8c6;
    margin: 10px 0 8px;
    padding: 0 0 6px;
    font-weight: bold;
}

.sub-sub-panel-title i {
    color: #4aa8d8;
    margin-right: 6px;
}

.card-body {
    padding: 12px;
    padding-bottom: 8px;
}

.form-control,
.form-select {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    background-color: #444;
    color: #fff;
    border-color: #5bc0de;
    box-shadow: 0 0 0 0.2rem rgba(91, 192, 222, 0.25);
}

.form-control:disabled,
.form-select:disabled {
    background-color: #333 !important;
    color: #777 !important;
    cursor: not-allowed;
    border-color: #555 !important;
}

.btn {
    font-weight: bold;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0, 0, 0);
}

.btn:active {
    transform: translateY(1px);
}

.row.equal-height {
    display: flex;
    flex-wrap: nowrap;
}

.row.equal-height>.col-lg-6 {
    display: flex;
    flex-direction: column;
}

.row.equal-height .card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.log-container {
    position: relative;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

.log-entry {
    margin-bottom: 5px;
    padding: 3px 5px;
    border-radius: 3px;
    background-color: rgba(30, 30, 30, 0.8);
    font-size: 13px;
    color: #ddd;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-entry:hover {
    background-color: rgba(50, 50, 50, 0.8);
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #198754;
    box-shadow: 0 0 8px #198754;
}

.status-inactive {
    background-color: #dc3545;
}

.protocol-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px;
    background-color: #2c2c2c;
    border-radius: 5px;
    margin-bottom: 10px;
    max-height: 100px;
    scrollbar-width: thin;
    scrollbar-color: #5bc0de #333;
}

.protocol-scroll::-webkit-scrollbar {
    height: 8px;
}

.protocol-scroll::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.protocol-scroll::-webkit-scrollbar-thumb {
    background: #5bc0de;
    border-radius: 4px;
}

.upload-btn {
    padding: 5px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.file-info {
    font-size: 14px;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
}

.stream-count {
    width: 70px;
}

.progress {
    height: 6px;
    background-color: #333;
    margin-top: 10px;
    visibility: hidden;
}

.progress.visible {
    visibility: visible;
}

@keyframes progress-animate {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.progress-bar-animate {
    animation: progress-animate 5s linear infinite;
}

.form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.setting-group {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #666;
}

.setting-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.stream-count-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #666;
}

.wvp-settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wvp-input {
    flex: 1;
    min-width: 250px;
}

.media-settings {
    padding-bottom: 5px !important;
}

.media-settings .card-body {
    padding-bottom: 8px;
}

.stream-settings {
    margin-top: 8px;
    margin-bottom: 8px;
}

.upload-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.file-info-container {
    display: inline-block;
}

#rtpSettings {
    margin-left: 20px;
    padding: 8px;
    background-color: rgba(30, 58, 66, 0.1);
    border-left: 3px solid #076683;
    border-radius: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
}

#rtpSettings .form-label {
    color: #c9caca;
}

#rightCard {
    display: flex;
    flex-direction: column;
}

#rightCard .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#logContainer {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

.log-timestamp {
    color: #5bc0de;
    font-weight: bold;
    margin-right: 8px;
}

.setting-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* WVP控制页面专用样式 */
.stat-card {
    background-color: #2c3e50;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    height: 100%;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #5bc0de;
}

.stat-label {
    font-size: 0.9rem;
    color: #8eb9d6;
    margin-top: 5px;
}

textarea.form-control {
    min-height: 60px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #198754;
    box-shadow: 0 0 8px #198754;
}

.status-inactive {
    background-color: #dc3545;
}

/* 进度条动画 */
@keyframes progress-animate {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.progress-bar-animate {
    animation: progress-animate 5s linear infinite;
}

/* 首页样式 */
.home-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100;
}

.home-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.logo {
    font-size: 4rem;
    color: #5bc0de;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.app-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(91, 192, 222, 0.5);
}

.app-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #c9caca;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card-option {
    background: rgba(45, 49, 66, 0.7);
    border: 1px solid rgba(91, 192, 222, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.card-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: #5bc0de;
}

.option-icon {
    font-size: 3.5rem;
    color: #5bc0de;
    margin: 1.5rem 0;
}

.option-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.option-description {
    color: #a0a0a0;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-option {
    background: transparent;
    border: 2px solid #5bc0de;
    color: #5bc0de;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.btn-option:hover {
    background: #5bc0de;
    color: #b10000;
    box-shadow: 0 0 15px rgba(91, 192, 222, 0.5);
}

.footer {
    margin-top: 3rem;
    color: #6c757d;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .wvp-input-row {
        flex-direction: column;
    }

    .wvp-input-row>div {
        min-width: 100%;
    }
}

.form-input::placeholder {
    color: #999;
}

/* 密码输入框组样式 */
.password-input-group .form-control {
    border-right: none;
}

.password-input-group .btn {
    border-left: none;
    background-color: #333;
    color: #ddd;
}

.password-input-group .btn:hover {
    background-color: #444;
    color: #fff;
}

#passwordContainer {
    display: flex;
}

#togglePassword {
    color: #aaa;
    cursor: pointer;
}

#togglePassword:hover {
    color: #fff;
}

.scroll-to-bottom {
    position: absolute;
    bottom: 10px;
    right: 20px;
    border: none;
    background: none;
    font-size: 20px;
    color: #5bc0de;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.scroll-to-bottom.inactive {
    color: gray;
}

.scroll-to-bottom:hover {
    color: #17a2b8;
}



.custom-tooltip .tooltip-inner {
    background-color: #ffffff !important;
    color: #ff3769 !important;
}

.custom-tooltip .tooltip-arrow::before {
    border-top-color: #ffffff !important;
}